package ltd.dujiabao.orderservice.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Bowie Du
 * @date 2025/7/13 19:04
 */

@Configuration
public class RabbitConfig {
    /**
     * 配置 Jackson2JsonMessageConverter 作为消息转换器
     */
    @Bean
    public Jackson2JsonMessageConverter jsonMessageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}
